#include "request.h"

/**
 * @brief 向服务端发送请求帧
*/
void request(int net_fd, unsigned short command, const char *parameter){
    // 总长度
    unsigned int frameLength = strlen(parameter);

    send(net_fd, &frameLength, sizeof frameLength, 0);

    send(net_fd, &command, sizeof command, 0);

    send(net_fd, parameter, frameLength, 0);

}
